function [ individuals ] = torneos( individuos, k, fit)
    individuals = zeros(k);
    for i=1:k
        r1 = fix((rand(1) * (cols(individuos))) + 1);
        r2 = fix((rand(1) * (cols(individuos))) + 1);
        ind1 = individuos(r1);
        ind2 = individuos(r2);
        r = rand(1);
        f1 = fit(r1);
        f2 = fit(r2);
        if r<0.75
            if f1 > f2
                ind = ind1;
            else
                ind = ind2;
            end
        else
            if f1 > f2
                ind = ind2;
            else
                ind = ind1;
            end
        end
        individuals(i) = ind;
    end
end

